<#assign view_content>
    <div class="content-container pickup-view">
        <div class="translate-contant">
            <div class="center" :style="{width : !isShowButton ? '100%' : ''}">
            <#if view.hasPSControl('pickupviewpanel')>
                <@ibizindent blank=20>
                    ${P.getCtrlCode('pickupviewpanel', 'CONTROL.html').code}<#t>
                </@ibizindent>
            </#if>
            </div>
            <div v-if="isShowButton" class="translate-buttons">
                <div class="buttons">
                    <i-button type="primary" :title="this.containerModel.view_rightbtn.text"
                        :disabled="this.containerModel.view_rightbtn.disabled"
                        @click="onCLickRight.apply(_self, arguments)">
                        <i class="el-icon-arrow-right"></i>
                    </i-button>
                    <i-button type="primary" :title="this.containerModel.view_leftbtn.text"
                        :disabled="this.containerModel.view_leftbtn.disabled"
                        @click="onCLickLeft.apply(_self, arguments)">
                        <i class="el-icon-arrow-left"></i>
                    </i-button>
                    <i-button type="primary" :title="this.containerModel.view_allrightbtn.text"
                        @click="onCLickAllRight.apply(_self, arguments)">
                        <i class="el-icon-d-arrow-right"></i>
                    </i-button>
                    <i-button type="primary" :title="this.containerModel.view_allleftbtn.text"
                        @click="onCLickAllLeft.apply(_self, arguments)">
                        <i class="el-icon-d-arrow-left"></i>
                    </i-button>
                </div>
            </div>
            <div v-if="isShowButton" class="right">
                <div class="mpicker-select">
                    <div v-for="(item, index) in viewSelections" :key="index" :class="item._select ? 'select' : ''" @click="selectionsClick(item)" @dblclick="selectionsDBLClick(item)">
                        <span>{{item.srfmajortext}}</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <template slot="footer">
        <div v-if="isShowButton" :style="{ textAlign: 'right' }">
            <i-button type="primary"  :disabled="this.viewSelections.length > 0 ? false : true" @click="onClickOk.apply(_self, arguments)">{{this.containerModel.view_okbtn.text}}</i-button>
                &nbsp;&nbsp;
            <i-button @click="onClickCancel.apply(_self, arguments)">{{this.containerModel.view_cancelbtn.text}}</i-button>
        </div>
    </template>
</#assign>
<#ibizinclude>../@MACRO/DEFAULT_VIEW_LAYOUT.ftl</#ibizinclude>